package com.cykj.eurekaclient.service;

import com.cykj.eurekaclient.bean.BackUser;
import com.cykj.eurekaclient.bean.DriverSalaryRecord;
import com.cykj.eurekaclient.bean.DriverSchedule;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * @version 1.0
 * @author: xinbin
 * @date: 2021/9/27 16:57
 * @desc:
 */
public interface DriverService {
    BackUser login(String account, String password, String phone);

    List<DriverSalaryRecord> salaryList(int driverId, RowBounds rowBounds, String date);

    int salaryRecord(int driverId);

    List<DriverSchedule> recordList(int driverId, RowBounds rowBounds, String startDate, String endDate);

    int departureRecord(int driverId);

    List<DriverSchedule> timeList(int driverId, RowBounds rowBounds, String startDate, String endDate);

    int timeTable(int driverId);

    List<DriverSchedule> workload(int driverId, RowBounds rowBounds, String startDate, String endDate);

    int workloadRecord(int driverId);

    List<DriverSchedule> checkList(int driverId, String date, String time);

    List<DriverSchedule> busList(int driverId, String date, String time, String nearTime);

    boolean departure(int driverId, int id);

    List<DriverSalaryRecord> deductionList(int driverId, RowBounds rowBounds, String startDate, String endDate);

    int deductionRecord(int driverId);

    List<DriverSchedule> schedules(int driverId);

    boolean leave(int driverId, String date);
}
